package com.ruitu.health_2.ui.activity;

import android.os.Bundle;

import com.ruitu.health_2.mvp.model.VideoModel;
import com.ruitu.health_2.mvp.presenter.VideoPresenter;
import com.ruitu.health_2.ui.common.VideoListActivity;

public class VideoListByColumnActivity extends VideoListActivity<VideoPresenter.VideoListP, VideoModel.VideoListM> {
    private String columnId;// 传过来的栏目id
    private String columnName = "视频列表";// 传过来的栏目名称

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        Bundle bundle = getIntent().getExtras();
        if (null != bundle) {
            columnId = getIntent().getStringExtra("columnId");
            columnName = getIntent().getStringExtra("columnName");
        }
        super.onCreate(savedInstanceState);

        setHeadTitle(columnName);
    }

    @Override
    protected void reqDataList() {
//        super.reqDataList();
        p.reqVideoListByColumn(columnId, 20, currPage);
    }

    @Override
    public void onReqComplete(int code, boolean isOk, Object data) {
        super.onReqComplete(code, isOk, data);
    }
}
